{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "55664fd7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "+-------+--------------------+--------------+-------------+----------------+---------------------+----+----+\n",
      "|       |         一         |      二      |      三     |       四       |          五         | 六 | 日 |\n",
      "+-------+--------------------+--------------+-------------+----------------+---------------------+----+----+\n",
      "|   1   |                    |   用户研究   |    棒垒球   |                | illustrator软件应用 |    |    |\n",
      "|  8.00 |                    |   @3实312    | @西区田径场 |                |     @新综合楼612    |    |    |\n",
      "|   2   |                    |              |             |                |                     |    |    |\n",
      "|  8.50 |                    |              |             |                |                     |    |    |\n",
      "|   3   |                    |              |   毛概理论  |                |    网站运营与管理   |    |    |\n",
      "|  9.45 |                    |              |    @9-201   |                |       @3实304       |    |    |\n",
      "|   4   | 大学英语（三）B1班 |  广告学概论  |             |                |                     |    |    |\n",
      "| 10.35 |      @10-204       |    @1-104    |             |                |                     |    |    |\n",
      "|   5   |                    |              |             |                |                     |    |    |\n",
      "| 11.20 |                    |              |             |                |                     |    |    |\n",
      "|   6   |      写作训练      |              |             |                |                     |    |    |\n",
      "| 12.50 |       @1-202       |              |             |                |                     |    |    |\n",
      "|   7   |                    |              |             |                |                     |    |    |\n",
      "| 13.40 |                    |              |             |                |                     |    |    |\n",
      "|   8   |     python语言     | 创业基础实践 |             | 科学技术发展史 |  手绘艺术基础@1-203 |    |    |\n",
      "| 14.30 |      @2实203       |    @1-205    |             |    @11-401     |                     |    |    |\n",
      "|   9   |                    |              |             |                |                     |    |    |\n",
      "| 15.15 |                    |              |             |                |                     |    |    |\n",
      "|   10  |                    |              |             |                |                     |    |    |\n",
      "| 16.10 |                    |              |             |                |                     |    |    |\n",
      "|   11  |                    |              |             |                |                     |    |    |\n",
      "| 16.55 |                    |              |             |                |                     |    |    |\n",
      "+-------+--------------------+--------------+-------------+----------------+---------------------+----+----+\n",
      "周末当然要尽情玩耍!希望老师别留特别多的作业！\n"
     ]
    }
   ],
   "source": [
    "import time\n",
    "\n",
    "from prettytable import PrettyTable\n",
    "\n",
    "\n",
    "\n",
    "table = PrettyTable(['','一', '二', '三', '四','五','六','日'])\n",
    "table.add_row(['1\\n8.00', '', '用户研究\\n@3实312', '棒垒球\\n@西区田径场','','illustrator软件应用\\n@新综合楼612','',''])\n",
    "table.add_row(['2\\n8.50', '', '', '','','','',''])\n",
    "table.add_row(['3\\n9.45', '', '', '毛概理论\\n@9-201','','网站运营与管理\\n@3实304','',''])\n",
    "table.add_row(['4\\n10.35', '大学英语（三）B1班\\n@10-204', '广告学概论\\n@1-104', '','','','',''])\n",
    "table.add_row(['5\\n11.20', '', '', '','','','',''])\n",
    "table.add_row(['6\\n12.50', '写作训练\\n@1-202', '', '','','','',''])\n",
    "table.add_row(['7\\n13.40', '', '', '','','','',''])\n",
    "table.add_row(['8\\n14.30', 'python语言\\n@2实203', '创业基础实践\\n@1-205', '','科学技术发展史\\n@11-401','手绘艺术基础@1-203','',''])\n",
    "table.add_row(['9\\n15.15', '', '', '','','','',''])\n",
    "table.add_row(['10\\n16.10', '', '', '','','','',''])\n",
    "table.add_row(['11\\n16.55', '', '', '','','','',''])\n",
    "print(table)\n",
    "# d=datetime.datetime.now()\n",
    "t = time.localtime()\n",
    "if t.tm_wday ==0:\n",
    "    if t.tm_hour==10 and t.tm_min==20:\n",
    "        print('还有十五分钟上英语课，记得去10教204占座')\n",
    "    elif t.tm_hour==12 and t.tm_min==35:\n",
    "        print('还有十五分钟上写作训练')\n",
    "    elif t.tm_hour==14 and t.tm_min==15:\n",
    "        print('还有十五分钟上python课，记得去2实的203占座')\n",
    "elif t.tm_wday ==1:\n",
    "    if t.tm_hour==7 and t.tm_min==45:\n",
    "        print('还有十五分钟上用户研究课，记得去3实312抢电脑机子')\n",
    "    elif t.tm_hour==10 and t.tm_min==20:\n",
    "        print('还有十五分钟上广告学概论课，记得去1教401和组员讨论方案')\n",
    "    elif t.tm_hour == 14 and t.tm_min == 15:\n",
    "        print('还有十五分钟上创业基础课，记得去1教205上课')\n",
    "elif t.tm_wday ==2:\n",
    "    if t.tm_hour == 7 and t.tm_min == 45:\n",
    "        print('还有十五分钟上棒垒球课，要去西区田径场')\n",
    "    elif t.tm_hour==9 and t.tm_min==20:\n",
    "        print('还有十五分钟上毛概课，可以和袁子茵一起在9教201上课')\n",
    "elif t.tm_wday ==3:\n",
    "    if t.tm_hour == 14 and t.tm_min == 15:\n",
    "     print('还有十五分钟上科学发展史，11教401的马爱云老师真和蔼')\n",
    "elif t.tm_wday ==4:\n",
    "    if t.tm_hour == 7 and t.tm_min == 45:\n",
    "        print('还有十五分钟上软件应用课，新棕合612的阚凤霞老师超可爱')\n",
    "    elif t.tm_hour == 9 and t.tm_min == 20:\n",
    "        print('还有十五分钟上网站运营课，3实304的胡美香老师很有意思')\n",
    "    elif t.tm_hour == 14 and t.tm_min == 15:\n",
    "     print('还有十五分钟上手绘艺术课，1教203的温灵老师很幽默')\n",
    "elif t.tm_wday ==5:\n",
    "    print('今天是周六没有课哦，可以好好休息哦！')\n",
    "elif t.tm_wday ==6:\n",
    "    print('周末当然要尽情玩耍!希望老师别留特别多的作业！')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6a43dc6f",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
